<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.5"/>
<title>MCUXpresso SDK API Reference Manual: PWM Driver</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="customdoxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="fs_logo.gif"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">MCUXpresso SDK API Reference Manual
   &#160;<span id="projectnumber">Rev. 0</span>
   </div>
   <div id="projectbrief">NXP Semiconductors</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.5 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>API&#160;Reference</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('group__pwm__driver.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#enum-members">Enumerations</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">PWM Driver<div class="ingroups"><a class="el" href="group__pwm.html">PWM: Pulse Width Modulation Driver</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>Main function */ int main(void) { pwm_config_t pwmConfig;.  
<a href="#details">More...</a></p>
<a name="details" id="details"></a><h2 class="groupheader">Overview</h2>
<p>The MCUXpresso SDK provides a peripheral driver for the Pulse Width Modulation (PWM) module of MCUXpresso SDK devices.</p>
<p>The function <a class="el" href="group__pwm__driver.html#ga6359b8a4cd00c794549ed9441e50ba3c" title="Ungates the PWM clock and configures the peripheral for basic operation. ">PWM_Init()</a> initializes the PWM with a specified configurations. The function <a class="el" href="group__pwm__driver.html#gaead09677ab28bfd57dce26c6c161b18d" title="Fill in the PWM config struct with the default settings. ">PWM_GetDefaultConfig()</a> gets the default configurations.The initialization function configures the PWM for the requested register update mode for registers with buffers.</p>
<p>The function <a class="el" href="group__pwm__driver.html#gaf93b767ea243d633bb00e3c7b4a217c6" title="Gate the PWM submodule clock. ">PWM_Deinit()</a> disables the PWM counter and turns off the module clock.</p>
<h1><a class="anchor" id="PWMCase"></a>
Typical use case</h1>
<h2><a class="anchor" id="PWMPWMOutput"></a>
PWM output</h2>
<p>Output PWM signal on PWM3 module with different dutycycles. Periodically update the PWM signal duty cycle. </p>
<div class="fragment"><div class="line"><span class="keywordtype">void</span> DEMO_PWM_IRQHandler(<span class="keywordtype">void</span>)</div>
<div class="line">{</div>
<div class="line">    <span class="comment">/* Gets interrupt kPWM_FIFOEmptyFlag */</span></div>
<div class="line">    <span class="keywordflow">if</span>(<a class="code" href="group__pwm__driver.html#ga1e16638fb84c7881722c7d370824bb34">PWM_GetStatusFlags</a>(DEMO_PWM_BASEADDR) &amp; <a class="code" href="group__pwm__driver.html#ggabc3ee1e46578039b2dbe795d60a69b2faa760e2de69f86bf50b160fa613f3ed0f">kPWM_FIFOEmptyFlag</a>)</div>
<div class="line">    {</div>
<div class="line">        <span class="keywordflow">if</span>(pwmDutyUp)</div>
<div class="line">        {</div>
<div class="line">            <span class="comment">/* Increase duty cycle until it reach limited value. */</span></div>
<div class="line">            <span class="keywordflow">if</span>(++pwmDutycycle &gt; PWM_PERIOD_VALUE)</div>
<div class="line">            {</div>
<div class="line">                pwmDutycycle = PWM_PERIOD_VALUE;</div>
<div class="line">                pwmDutyUp = <span class="keyword">false</span>;</div>
<div class="line">            }</div>
<div class="line">        }</div>
<div class="line">        <span class="keywordflow">else</span></div>
<div class="line">        {</div>
<div class="line">            <span class="comment">/* Decrease duty cycle until it reach limited value. */</span></div>
<div class="line">            <span class="keywordflow">if</span>(--pwmDutycycle == 0U)</div>
<div class="line">            {</div>
<div class="line">                pwmDutyUp = <span class="keyword">true</span>;</div>
<div class="line">            }</div>
<div class="line">        }</div>
<div class="line">        <span class="comment">/* Write duty cycle to PWM sample register.  */</span></div>
<div class="line">        <a class="code" href="group__pwm__driver.html#gaf30e59afefa5214fdb951a41508c39d2">PWM_SetSampleValue</a>(DEMO_PWM_BASEADDR, pwmDutycycle);</div>
<div class="line">        <span class="comment">/* Clear kPWM_FIFOEmptyFlag */</span></div>
<div class="line">        <a class="code" href="group__pwm__driver.html#ga5554b41a1262201466f831085fa0a0e3">PWM_clearStatusFlags</a>(DEMO_PWM_BASEADDR, kPWM_FIFOEmptyFlag);</div>
<div class="line">    }</div>
<div class="line">}</div>
<div class="line"></div>
<div class="line">    BOARD_InitHardware();</div>
<div class="line">    SystemInstallIrqHandler(DEMO_PWM_IRQn, (system_irq_handler_t)DEMO_PWM_IRQHandler, NULL);</div>
<div class="line"></div>
<div class="line">    PRINTF(<span class="stringliteral">&quot;\r\nPWM driver example.\r\n&quot;</span>);</div>
<div class="line"></div>
<div class="line">    <a class="code" href="group__pwm__driver.html#gaead09677ab28bfd57dce26c6c161b18d">PWM_GetDefaultConfig</a>(&amp;pwmConfig);</div>
<div class="line"></div>
<div class="line">    <span class="comment">/* Initialize PWM module */</span></div>
<div class="line">    <a class="code" href="group__pwm__driver.html#ga6359b8a4cd00c794549ed9441e50ba3c">PWM_Init</a>(DEMO_PWM_BASEADDR, &amp;pwmConfig);</div>
<div class="line"></div>
<div class="line">    <span class="comment">/* Enable FIFO empty interrupt */</span></div>
<div class="line">    <a class="code" href="group__pwm__driver.html#gaa8ddb3dddd8f5a9451cf286da691572e">PWM_EnableInterrupts</a>(DEMO_PWM_BASEADDR, <a class="code" href="group__pwm__driver.html#gga4f56d1f07b6947af55eccc5375ed520da4525b66559dac8d57abfad2c4bbbea40">kPWM_FIFOEmptyInterruptEnable</a>);</div>
<div class="line"></div>
<div class="line">    <span class="comment">/* Three initial samples be written to the PWM Sample Register */</span></div>
<div class="line">    <span class="keywordflow">for</span>(pwmDutycycle = 0u; pwmDutycycle &lt; 3; pwmDutycycle++)</div>
<div class="line">    {</div>
<div class="line">        <a class="code" href="group__pwm__driver.html#gaf30e59afefa5214fdb951a41508c39d2">PWM_SetSampleValue</a>(DEMO_PWM_BASEADDR, pwmDutycycle);</div>
<div class="line">    }</div>
<div class="line"></div>
<div class="line">    <span class="comment">/* Check and Clear interrupt status flags */</span></div>
<div class="line">    <span class="keywordflow">if</span>(<a class="code" href="group__pwm__driver.html#ga1e16638fb84c7881722c7d370824bb34">PWM_GetStatusFlags</a>(DEMO_PWM_BASEADDR))</div>
<div class="line">    {</div>
<div class="line">        <a class="code" href="group__pwm__driver.html#ga5554b41a1262201466f831085fa0a0e3">PWM_clearStatusFlags</a>(DEMO_PWM_BASEADDR, kPWM_FIFOEmptyFlag | <a class="code" href="group__pwm__driver.html#ggabc3ee1e46578039b2dbe795d60a69b2fa6935f1892585a8ee4236792eb8b71e9d">kPWM_RolloverFlag</a> | <a class="code" href="group__pwm__driver.html#ggabc3ee1e46578039b2dbe795d60a69b2fa5c09799112bef469896b400acfa81c47">kPWM_CompareFlag</a> | <a class="code" href="group__pwm__driver.html#ggabc3ee1e46578039b2dbe795d60a69b2faea97a51c1742c4b203c9d43efabf773e">kPWM_FIFOWriteErrorFlag</a>);</div>
<div class="line">    }</div>
<div class="line"></div>
<div class="line">    <span class="comment">/* Write the period to the PWM Period Register */</span></div>
<div class="line">    <a class="code" href="group__pwm__driver.html#gaeca8cd9af1aacdca96c91f60482a54d4">PWM_SetPeriodValue</a>(DEMO_PWM_BASEADDR, PWM_PERIOD_VALUE);</div>
<div class="line"></div>
<div class="line">    <span class="comment">/* Enable PWM interrupt request */</span></div>
<div class="line">    EnableIRQ(DEMO_PWM_IRQn);</div>
<div class="line"></div>
<div class="line">    <a class="code" href="group__pwm__driver.html#ga6d94af58afb186f19c075cf0cc8a4670">PWM_StartTimer</a>(DEMO_PWM_BASEADDR);</div>
<div class="line"></div>
<div class="line">    <span class="keywordflow">while</span> (1)</div>
<div class="line">    {</div>
<div class="line">    }</div>
<div class="line">}</div>
</div><!-- fragment --> <table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:ga54dcbb5e3e5c8ceebef5f46a9ec73a2f"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__pwm__driver.html#ga54dcbb5e3e5c8ceebef5f46a9ec73a2f">pwm_clock_source_t</a> { <br/>
&#160;&#160;<a class="el" href="group__pwm__driver.html#gga54dcbb5e3e5c8ceebef5f46a9ec73a2fa720ad082de555ca2262db6704c2a48a3">kPWM_PeripheralClock</a> = 0U, 
<br/>
&#160;&#160;<a class="el" href="group__pwm__driver.html#gga54dcbb5e3e5c8ceebef5f46a9ec73a2fa085a1f3b7337dbbba37cc92b63c456a9">kPWM_HighFrequencyClock</a>, 
<br/>
&#160;&#160;<a class="el" href="group__pwm__driver.html#gga54dcbb5e3e5c8ceebef5f46a9ec73a2faba2ffadbe1b173e93305c188117a76c2">kPWM_LowFrequencyClock</a>
<br/>
 }</td></tr>
<tr class="memdesc:ga54dcbb5e3e5c8ceebef5f46a9ec73a2f"><td class="mdescLeft">&#160;</td><td class="mdescRight">PWM clock source select.  <a href="group__pwm__driver.html#ga54dcbb5e3e5c8ceebef5f46a9ec73a2f">More...</a><br/></td></tr>
<tr class="separator:ga54dcbb5e3e5c8ceebef5f46a9ec73a2f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6e28d42a5d0c43c2afd4a360868b67c1"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__pwm__driver.html#ga6e28d42a5d0c43c2afd4a360868b67c1">pwm_fifo_water_mark_t</a> { <br/>
&#160;&#160;<a class="el" href="group__pwm__driver.html#gga6e28d42a5d0c43c2afd4a360868b67c1a46bc12cdcd748f75352dda927d12469a">kPWM_FIFOWaterMark_1</a> = 0U, 
<br/>
&#160;&#160;<a class="el" href="group__pwm__driver.html#gga6e28d42a5d0c43c2afd4a360868b67c1aa33f62954c9e10d85e4a13412090913f">kPWM_FIFOWaterMark_2</a>, 
<br/>
&#160;&#160;<a class="el" href="group__pwm__driver.html#gga6e28d42a5d0c43c2afd4a360868b67c1ada5ef9ecf09d93451bf57b8a4b618ba4">kPWM_FIFOWaterMark_3</a>, 
<br/>
&#160;&#160;<a class="el" href="group__pwm__driver.html#gga6e28d42a5d0c43c2afd4a360868b67c1af5401079de9ca6b7e62439d9a984ae03">kPWM_FIFOWaterMark_4</a>
<br/>
 }</td></tr>
<tr class="memdesc:ga6e28d42a5d0c43c2afd4a360868b67c1"><td class="mdescLeft">&#160;</td><td class="mdescRight">PWM FIFO water mark select.  <a href="group__pwm__driver.html#ga6e28d42a5d0c43c2afd4a360868b67c1">More...</a><br/></td></tr>
<tr class="separator:ga6e28d42a5d0c43c2afd4a360868b67c1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gacc83f5df6efd279b96ec7736d4259134"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__pwm__driver.html#gacc83f5df6efd279b96ec7736d4259134">pwm_byte_data_swap_t</a> { <br/>
&#160;&#160;<a class="el" href="group__pwm__driver.html#ggacc83f5df6efd279b96ec7736d4259134ae3fa9d0120efe5505d2af8e97930289d">kPWM_ByteNoSwap</a> = 0U, 
<br/>
&#160;&#160;<a class="el" href="group__pwm__driver.html#ggacc83f5df6efd279b96ec7736d4259134a4c7de4fcc7f74c751dad87d905dc1898">kPWM_ByteSwap</a>
<br/>
 }</td></tr>
<tr class="memdesc:gacc83f5df6efd279b96ec7736d4259134"><td class="mdescLeft">&#160;</td><td class="mdescRight">PWM byte data swap select.  <a href="group__pwm__driver.html#gacc83f5df6efd279b96ec7736d4259134">More...</a><br/></td></tr>
<tr class="separator:gacc83f5df6efd279b96ec7736d4259134"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9717526c69f90be4577677b784a95c99"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__pwm__driver.html#ga9717526c69f90be4577677b784a95c99">pwm_half_word_data_swap_t</a> { <br/>
&#160;&#160;<a class="el" href="group__pwm__driver.html#gga9717526c69f90be4577677b784a95c99a7fa6ec0c14835ef884bf21948ab9bcf1">kPWM_HalfWordNoSwap</a> = 0U, 
<br/>
&#160;&#160;<a class="el" href="group__pwm__driver.html#gga9717526c69f90be4577677b784a95c99a6a9922129c4d784d1c2a7b488ef5f9fc">kPWM_HalfWordSwap</a>
<br/>
 }</td></tr>
<tr class="memdesc:ga9717526c69f90be4577677b784a95c99"><td class="mdescLeft">&#160;</td><td class="mdescRight">PWM half-word data swap select.  <a href="group__pwm__driver.html#ga9717526c69f90be4577677b784a95c99">More...</a><br/></td></tr>
<tr class="separator:ga9717526c69f90be4577677b784a95c99"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0adacb1aa800a63efc5284aad1c99e94"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__pwm__driver.html#ga0adacb1aa800a63efc5284aad1c99e94">pwm_output_configuration_t</a> { <br/>
&#160;&#160;<a class="el" href="group__pwm__driver.html#gga0adacb1aa800a63efc5284aad1c99e94ae7aa751cf0d4e6cc037bcb759a2da38a">kPWM_SetAtRolloverAndClearAtcomparison</a> = 0U, 
<br/>
&#160;&#160;<a class="el" href="group__pwm__driver.html#gga0adacb1aa800a63efc5284aad1c99e94ab0fc28ed8325295cc72f3dd186b92d89">kPWM_ClearAtRolloverAndSetAtcomparison</a>, 
<br/>
&#160;&#160;<a class="el" href="group__pwm__driver.html#gga0adacb1aa800a63efc5284aad1c99e94a2defe10613012528de8c7cb282af6534">kPWM_NoConfigure</a>
<br/>
 }</td></tr>
<tr class="memdesc:ga0adacb1aa800a63efc5284aad1c99e94"><td class="mdescLeft">&#160;</td><td class="mdescRight">PWM Output Configuration.  <a href="group__pwm__driver.html#ga0adacb1aa800a63efc5284aad1c99e94">More...</a><br/></td></tr>
<tr class="separator:ga0adacb1aa800a63efc5284aad1c99e94"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0fa976f45603849cad601ab4db4d15b7"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__pwm__driver.html#ga0fa976f45603849cad601ab4db4d15b7">pwm_sample_repeat_t</a> { <br/>
&#160;&#160;<a class="el" href="group__pwm__driver.html#gga0fa976f45603849cad601ab4db4d15b7a602b673889a9b270cec181f67df0b693">kPWM_EachSampleOnce</a> = 0u, 
<br/>
&#160;&#160;<a class="el" href="group__pwm__driver.html#gga0fa976f45603849cad601ab4db4d15b7aa76ac77e7df80d685a539609a2f3989d">kPWM_EachSampletwice</a>, 
<br/>
&#160;&#160;<a class="el" href="group__pwm__driver.html#gga0fa976f45603849cad601ab4db4d15b7abe0215aa24b7e1b37dadbb36ec82d38b">kPWM_EachSampleFourTimes</a>, 
<br/>
&#160;&#160;<a class="el" href="group__pwm__driver.html#gga0fa976f45603849cad601ab4db4d15b7a0aaa4ddab42036d9bc77aaacf16717e5">kPWM_EachSampleEightTimes</a>
<br/>
 }</td></tr>
<tr class="memdesc:ga0fa976f45603849cad601ab4db4d15b7"><td class="mdescLeft">&#160;</td><td class="mdescRight">PWM FIFO sample repeat It determines the number of times each sample from the FIFO is to be used.  <a href="group__pwm__driver.html#ga0fa976f45603849cad601ab4db4d15b7">More...</a><br/></td></tr>
<tr class="separator:ga0fa976f45603849cad601ab4db4d15b7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga4f56d1f07b6947af55eccc5375ed520d"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__pwm__driver.html#ga4f56d1f07b6947af55eccc5375ed520d">pwm_interrupt_enable_t</a> { <br/>
&#160;&#160;<a class="el" href="group__pwm__driver.html#gga4f56d1f07b6947af55eccc5375ed520da4525b66559dac8d57abfad2c4bbbea40">kPWM_FIFOEmptyInterruptEnable</a> = (1U &lt;&lt; 0), 
<br/>
&#160;&#160;<a class="el" href="group__pwm__driver.html#gga4f56d1f07b6947af55eccc5375ed520daaf5fdeddfe16aa2c1208c2e4d91996f7">kPWM_RolloverInterruptEnable</a> = (1U &lt;&lt; 1), 
<br/>
&#160;&#160;<a class="el" href="group__pwm__driver.html#gga4f56d1f07b6947af55eccc5375ed520daa9b58c2bf5145b5ef4b981b5f5d50fea">kPWM_CompareInterruptEnable</a> = (1U &lt;&lt; 2)
<br/>
 }</td></tr>
<tr class="memdesc:ga4f56d1f07b6947af55eccc5375ed520d"><td class="mdescLeft">&#160;</td><td class="mdescRight">List of PWM interrupt options.  <a href="group__pwm__driver.html#ga4f56d1f07b6947af55eccc5375ed520d">More...</a><br/></td></tr>
<tr class="separator:ga4f56d1f07b6947af55eccc5375ed520d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gabc3ee1e46578039b2dbe795d60a69b2f"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__pwm__driver.html#gabc3ee1e46578039b2dbe795d60a69b2f">pwm_status_flags_t</a> { <br/>
&#160;&#160;<a class="el" href="group__pwm__driver.html#ggabc3ee1e46578039b2dbe795d60a69b2faa760e2de69f86bf50b160fa613f3ed0f">kPWM_FIFOEmptyFlag</a> = (1U &lt;&lt; 3), 
<br/>
&#160;&#160;<a class="el" href="group__pwm__driver.html#ggabc3ee1e46578039b2dbe795d60a69b2fa6935f1892585a8ee4236792eb8b71e9d">kPWM_RolloverFlag</a> = (1U &lt;&lt; 4), 
<br/>
&#160;&#160;<a class="el" href="group__pwm__driver.html#ggabc3ee1e46578039b2dbe795d60a69b2fa5c09799112bef469896b400acfa81c47">kPWM_CompareFlag</a> = (1U &lt;&lt; 5), 
<br/>
&#160;&#160;<a class="el" href="group__pwm__driver.html#ggabc3ee1e46578039b2dbe795d60a69b2faea97a51c1742c4b203c9d43efabf773e">kPWM_FIFOWriteErrorFlag</a> = (1U &lt;&lt; 6)
<br/>
 }</td></tr>
<tr class="memdesc:gabc3ee1e46578039b2dbe795d60a69b2f"><td class="mdescLeft">&#160;</td><td class="mdescRight">List of PWM status flags.  <a href="group__pwm__driver.html#gabc3ee1e46578039b2dbe795d60a69b2f">More...</a><br/></td></tr>
<tr class="separator:gabc3ee1e46578039b2dbe795d60a69b2f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga44d23f62b51e6ff9cfb59c0de70854e0"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__pwm__driver.html#ga44d23f62b51e6ff9cfb59c0de70854e0">pwm_fifo_available_t</a> { <br/>
&#160;&#160;<a class="el" href="group__pwm__driver.html#gga44d23f62b51e6ff9cfb59c0de70854e0abc972d0365de9da7939b7b2303843ae7">kPWM_NoDataInFIFOFlag</a> = 0U, 
<br/>
&#160;&#160;<a class="el" href="group__pwm__driver.html#gga44d23f62b51e6ff9cfb59c0de70854e0a7ad9f69d768a8db9d06451bd10570f45">kPWM_OneWordInFIFOFlag</a>, 
<br/>
&#160;&#160;<a class="el" href="group__pwm__driver.html#gga44d23f62b51e6ff9cfb59c0de70854e0a9f29c4ee5edf483e38b8cfd8ae17d5fe">kPWM_TwoWordsInFIFOFlag</a>, 
<br/>
&#160;&#160;<a class="el" href="group__pwm__driver.html#gga44d23f62b51e6ff9cfb59c0de70854e0a562337a037bdefed6658dbc098d28ba8">kPWM_ThreeWordsInFIFOFlag</a>, 
<br/>
&#160;&#160;<a class="el" href="group__pwm__driver.html#gga44d23f62b51e6ff9cfb59c0de70854e0a8c49eedceff1f99bd9908fcaf652278d">kPWM_FourWordsInFIFOFlag</a>
<br/>
 }</td></tr>
<tr class="memdesc:ga44d23f62b51e6ff9cfb59c0de70854e0"><td class="mdescLeft">&#160;</td><td class="mdescRight">List of PWM FIFO available.  <a href="group__pwm__driver.html#ga44d23f62b51e6ff9cfb59c0de70854e0">More...</a><br/></td></tr>
<tr class="separator:ga44d23f62b51e6ff9cfb59c0de70854e0"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga46cd9b9c3c3409649667d816b37dfe93"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__pwm__driver.html#ga46cd9b9c3c3409649667d816b37dfe93">PWM_SoftwareReset</a> (PWM_Type *base)</td></tr>
<tr class="memdesc:ga46cd9b9c3c3409649667d816b37dfe93"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sofrware reset.  <a href="#ga46cd9b9c3c3409649667d816b37dfe93">More...</a><br/></td></tr>
<tr class="separator:ga46cd9b9c3c3409649667d816b37dfe93"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaeca8cd9af1aacdca96c91f60482a54d4"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__pwm__driver.html#gaeca8cd9af1aacdca96c91f60482a54d4">PWM_SetPeriodValue</a> (PWM_Type *base, uint32_t value)</td></tr>
<tr class="memdesc:gaeca8cd9af1aacdca96c91f60482a54d4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the PWM period value.  <a href="#gaeca8cd9af1aacdca96c91f60482a54d4">More...</a><br/></td></tr>
<tr class="separator:gaeca8cd9af1aacdca96c91f60482a54d4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga67304227c86e6a15ec78f339f9fe00e3"><td class="memItemLeft" align="right" valign="top">static uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__pwm__driver.html#ga67304227c86e6a15ec78f339f9fe00e3">PWM_GetPeriodValue</a> (PWM_Type *base)</td></tr>
<tr class="memdesc:ga67304227c86e6a15ec78f339f9fe00e3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the PWM period value.  <a href="#ga67304227c86e6a15ec78f339f9fe00e3">More...</a><br/></td></tr>
<tr class="separator:ga67304227c86e6a15ec78f339f9fe00e3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac77ad7b4cbb1658df73b8d50f10978b5"><td class="memItemLeft" align="right" valign="top">static uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__pwm__driver.html#gac77ad7b4cbb1658df73b8d50f10978b5">PWM_GetCounterValue</a> (PWM_Type *base)</td></tr>
<tr class="memdesc:gac77ad7b4cbb1658df73b8d50f10978b5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the PWM counter value.  <a href="#gac77ad7b4cbb1658df73b8d50f10978b5">More...</a><br/></td></tr>
<tr class="separator:gac77ad7b4cbb1658df73b8d50f10978b5"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="member-group"></a>
Driver version</h2></td></tr>
<tr class="memitem:ga8bda5d1da1f6b7150e002c109a62d083"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga8bda5d1da1f6b7150e002c109a62d083"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__pwm__driver.html#ga8bda5d1da1f6b7150e002c109a62d083">FSL_PWM_DRIVER_VERSION</a>&#160;&#160;&#160;(MAKE_VERSION(2, 0, 0))</td></tr>
<tr class="memdesc:ga8bda5d1da1f6b7150e002c109a62d083"><td class="mdescLeft">&#160;</td><td class="mdescRight">Version 2.0.0. <br/></td></tr>
<tr class="separator:ga8bda5d1da1f6b7150e002c109a62d083"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="member-group"></a>
Initialization and deinitialization</h2></td></tr>
<tr class="memitem:ga6359b8a4cd00c794549ed9441e50ba3c"><td class="memItemLeft" align="right" valign="top">status_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__pwm__driver.html#ga6359b8a4cd00c794549ed9441e50ba3c">PWM_Init</a> (PWM_Type *base, const pwm_config_t *config)</td></tr>
<tr class="memdesc:ga6359b8a4cd00c794549ed9441e50ba3c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Ungates the PWM clock and configures the peripheral for basic operation.  <a href="#ga6359b8a4cd00c794549ed9441e50ba3c">More...</a><br/></td></tr>
<tr class="separator:ga6359b8a4cd00c794549ed9441e50ba3c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf93b767ea243d633bb00e3c7b4a217c6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__pwm__driver.html#gaf93b767ea243d633bb00e3c7b4a217c6">PWM_Deinit</a> (PWM_Type *base)</td></tr>
<tr class="memdesc:gaf93b767ea243d633bb00e3c7b4a217c6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gate the PWM submodule clock.  <a href="#gaf93b767ea243d633bb00e3c7b4a217c6">More...</a><br/></td></tr>
<tr class="separator:gaf93b767ea243d633bb00e3c7b4a217c6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaead09677ab28bfd57dce26c6c161b18d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__pwm__driver.html#gaead09677ab28bfd57dce26c6c161b18d">PWM_GetDefaultConfig</a> (pwm_config_t *config)</td></tr>
<tr class="memdesc:gaead09677ab28bfd57dce26c6c161b18d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Fill in the PWM config struct with the default settings.  <a href="#gaead09677ab28bfd57dce26c6c161b18d">More...</a><br/></td></tr>
<tr class="separator:gaead09677ab28bfd57dce26c6c161b18d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="member-group"></a>
PWM start and stop.</h2></td></tr>
<tr class="memitem:ga6d94af58afb186f19c075cf0cc8a4670"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__pwm__driver.html#ga6d94af58afb186f19c075cf0cc8a4670">PWM_StartTimer</a> (PWM_Type *base)</td></tr>
<tr class="memdesc:ga6d94af58afb186f19c075cf0cc8a4670"><td class="mdescLeft">&#160;</td><td class="mdescRight">Starts the PWM counter when the PWM is enabled.  <a href="#ga6d94af58afb186f19c075cf0cc8a4670">More...</a><br/></td></tr>
<tr class="separator:ga6d94af58afb186f19c075cf0cc8a4670"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga863fd4143eab8fba91be2a80c300ee5f"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__pwm__driver.html#ga863fd4143eab8fba91be2a80c300ee5f">PWM_StopTimer</a> (PWM_Type *base)</td></tr>
<tr class="memdesc:ga863fd4143eab8fba91be2a80c300ee5f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Stops the PWM counter when the pwm is disabled.  <a href="#ga863fd4143eab8fba91be2a80c300ee5f">More...</a><br/></td></tr>
<tr class="separator:ga863fd4143eab8fba91be2a80c300ee5f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="member-group"></a>
Interrupt Interface</h2></td></tr>
<tr class="memitem:gaa8ddb3dddd8f5a9451cf286da691572e"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__pwm__driver.html#gaa8ddb3dddd8f5a9451cf286da691572e">PWM_EnableInterrupts</a> (PWM_Type *base, uint32_t mask)</td></tr>
<tr class="memdesc:gaa8ddb3dddd8f5a9451cf286da691572e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables the selected PWM interrupts.  <a href="#gaa8ddb3dddd8f5a9451cf286da691572e">More...</a><br/></td></tr>
<tr class="separator:gaa8ddb3dddd8f5a9451cf286da691572e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf8ef908a32a5b7c11890119680533efb"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__pwm__driver.html#gaf8ef908a32a5b7c11890119680533efb">PWM_DisableInterrupts</a> (PWM_Type *base, uint32_t mask)</td></tr>
<tr class="memdesc:gaf8ef908a32a5b7c11890119680533efb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Disables the selected PWM interrupts.  <a href="#gaf8ef908a32a5b7c11890119680533efb">More...</a><br/></td></tr>
<tr class="separator:gaf8ef908a32a5b7c11890119680533efb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf5aeac9d17361d41ebd4fd35cf8c844b"><td class="memItemLeft" align="right" valign="top">static uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__pwm__driver.html#gaf5aeac9d17361d41ebd4fd35cf8c844b">PWM_GetEnabledInterrupts</a> (PWM_Type *base)</td></tr>
<tr class="memdesc:gaf5aeac9d17361d41ebd4fd35cf8c844b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the enabled PWM interrupts.  <a href="#gaf5aeac9d17361d41ebd4fd35cf8c844b">More...</a><br/></td></tr>
<tr class="separator:gaf5aeac9d17361d41ebd4fd35cf8c844b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="member-group"></a>
Status Interface</h2></td></tr>
<tr class="memitem:ga1e16638fb84c7881722c7d370824bb34"><td class="memItemLeft" align="right" valign="top">static uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__pwm__driver.html#ga1e16638fb84c7881722c7d370824bb34">PWM_GetStatusFlags</a> (PWM_Type *base)</td></tr>
<tr class="memdesc:ga1e16638fb84c7881722c7d370824bb34"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the PWM status flags.  <a href="#ga1e16638fb84c7881722c7d370824bb34">More...</a><br/></td></tr>
<tr class="separator:ga1e16638fb84c7881722c7d370824bb34"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga5554b41a1262201466f831085fa0a0e3"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__pwm__driver.html#ga5554b41a1262201466f831085fa0a0e3">PWM_clearStatusFlags</a> (PWM_Type *base, uint32_t mask)</td></tr>
<tr class="memdesc:ga5554b41a1262201466f831085fa0a0e3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clears the PWM status flags.  <a href="#ga5554b41a1262201466f831085fa0a0e3">More...</a><br/></td></tr>
<tr class="separator:ga5554b41a1262201466f831085fa0a0e3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga68f31c637445e375d6429db0f265a0ff"><td class="memItemLeft" align="right" valign="top">static uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__pwm__driver.html#ga68f31c637445e375d6429db0f265a0ff">PWM_GetFIFOAvailable</a> (PWM_Type *base)</td></tr>
<tr class="memdesc:ga68f31c637445e375d6429db0f265a0ff"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the PWM FIFO available.  <a href="#ga68f31c637445e375d6429db0f265a0ff">More...</a><br/></td></tr>
<tr class="separator:ga68f31c637445e375d6429db0f265a0ff"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="member-group"></a>
Sample Interface</h2></td></tr>
<tr class="memitem:gaf30e59afefa5214fdb951a41508c39d2"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__pwm__driver.html#gaf30e59afefa5214fdb951a41508c39d2">PWM_SetSampleValue</a> (PWM_Type *base, uint32_t value)</td></tr>
<tr class="memdesc:gaf30e59afefa5214fdb951a41508c39d2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the PWM sample value.  <a href="#gaf30e59afefa5214fdb951a41508c39d2">More...</a><br/></td></tr>
<tr class="separator:gaf30e59afefa5214fdb951a41508c39d2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6e3329e7f50fc923b26003a988366860"><td class="memItemLeft" align="right" valign="top">static uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__pwm__driver.html#ga6e3329e7f50fc923b26003a988366860">PWM_GetSampleValue</a> (PWM_Type *base)</td></tr>
<tr class="memdesc:ga6e3329e7f50fc923b26003a988366860"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the PWM sample value.  <a href="#ga6e3329e7f50fc923b26003a988366860">More...</a><br/></td></tr>
<tr class="separator:ga6e3329e7f50fc923b26003a988366860"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Enumeration Type Documentation</h2>
<a class="anchor" id="ga54dcbb5e3e5c8ceebef5f46a9ec73a2f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__pwm__driver.html#ga54dcbb5e3e5c8ceebef5f46a9ec73a2f">pwm_clock_source_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><em><a class="anchor" id="gga54dcbb5e3e5c8ceebef5f46a9ec73a2fa720ad082de555ca2262db6704c2a48a3"></a>kPWM_PeripheralClock</em>&nbsp;</td><td class="fielddoc">
<p>The Peripheral clock is used as the clock. </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="gga54dcbb5e3e5c8ceebef5f46a9ec73a2fa085a1f3b7337dbbba37cc92b63c456a9"></a>kPWM_HighFrequencyClock</em>&nbsp;</td><td class="fielddoc">
<p>High-frequency reference clock is used as the clock. </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="gga54dcbb5e3e5c8ceebef5f46a9ec73a2faba2ffadbe1b173e93305c188117a76c2"></a>kPWM_LowFrequencyClock</em>&nbsp;</td><td class="fielddoc">
<p>Low-frequency reference clock(32KHz) is used as the clock. </p>
</td></tr>
</table>

</div>
</div>
<a class="anchor" id="ga6e28d42a5d0c43c2afd4a360868b67c1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__pwm__driver.html#ga6e28d42a5d0c43c2afd4a360868b67c1">pwm_fifo_water_mark_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Sets the data level at which the FIFO empty flag will be set </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><em><a class="anchor" id="gga6e28d42a5d0c43c2afd4a360868b67c1a46bc12cdcd748f75352dda927d12469a"></a>kPWM_FIFOWaterMark_1</em>&nbsp;</td><td class="fielddoc">
<p>FIFO empty flag is set when there are more than or equal to 1 empty slots. </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="gga6e28d42a5d0c43c2afd4a360868b67c1aa33f62954c9e10d85e4a13412090913f"></a>kPWM_FIFOWaterMark_2</em>&nbsp;</td><td class="fielddoc">
<p>FIFO empty flag is set when there are more than or equal to 2 empty slots. </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="gga6e28d42a5d0c43c2afd4a360868b67c1ada5ef9ecf09d93451bf57b8a4b618ba4"></a>kPWM_FIFOWaterMark_3</em>&nbsp;</td><td class="fielddoc">
<p>FIFO empty flag is set when there are more than or equal to 3 empty slots. </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="gga6e28d42a5d0c43c2afd4a360868b67c1af5401079de9ca6b7e62439d9a984ae03"></a>kPWM_FIFOWaterMark_4</em>&nbsp;</td><td class="fielddoc">
<p>FIFO empty flag is set when there are more than or equal to 4 empty slots. </p>
</td></tr>
</table>

</div>
</div>
<a class="anchor" id="gacc83f5df6efd279b96ec7736d4259134"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__pwm__driver.html#gacc83f5df6efd279b96ec7736d4259134">pwm_byte_data_swap_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>It determines the byte ordering of the 16-bit data when it goes into the FIFO from the sample register. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><em><a class="anchor" id="ggacc83f5df6efd279b96ec7736d4259134ae3fa9d0120efe5505d2af8e97930289d"></a>kPWM_ByteNoSwap</em>&nbsp;</td><td class="fielddoc">
<p>byte ordering remains the same </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="ggacc83f5df6efd279b96ec7736d4259134a4c7de4fcc7f74c751dad87d905dc1898"></a>kPWM_ByteSwap</em>&nbsp;</td><td class="fielddoc">
<p>byte ordering is reversed </p>
</td></tr>
</table>

</div>
</div>
<a class="anchor" id="ga9717526c69f90be4577677b784a95c99"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__pwm__driver.html#ga9717526c69f90be4577677b784a95c99">pwm_half_word_data_swap_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><em><a class="anchor" id="gga9717526c69f90be4577677b784a95c99a7fa6ec0c14835ef884bf21948ab9bcf1"></a>kPWM_HalfWordNoSwap</em>&nbsp;</td><td class="fielddoc">
<p>Half word swapping does not take place. </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="gga9717526c69f90be4577677b784a95c99a6a9922129c4d784d1c2a7b488ef5f9fc"></a>kPWM_HalfWordSwap</em>&nbsp;</td><td class="fielddoc">
<p>Half word from write data bus are swapped. </p>
</td></tr>
</table>

</div>
</div>
<a class="anchor" id="ga0adacb1aa800a63efc5284aad1c99e94"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__pwm__driver.html#ga0adacb1aa800a63efc5284aad1c99e94">pwm_output_configuration_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><em><a class="anchor" id="gga0adacb1aa800a63efc5284aad1c99e94ae7aa751cf0d4e6cc037bcb759a2da38a"></a>kPWM_SetAtRolloverAndClearAtcomparison</em>&nbsp;</td><td class="fielddoc">
<p>Output pin is set at rollover and cleared at comparison. </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="gga0adacb1aa800a63efc5284aad1c99e94ab0fc28ed8325295cc72f3dd186b92d89"></a>kPWM_ClearAtRolloverAndSetAtcomparison</em>&nbsp;</td><td class="fielddoc">
<p>Output pin is cleared at rollover and set at comparison. </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="gga0adacb1aa800a63efc5284aad1c99e94a2defe10613012528de8c7cb282af6534"></a>kPWM_NoConfigure</em>&nbsp;</td><td class="fielddoc">
<p>PWM output is disconnected. </p>
</td></tr>
</table>

</div>
</div>
<a class="anchor" id="ga0fa976f45603849cad601ab4db4d15b7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__pwm__driver.html#ga0fa976f45603849cad601ab4db4d15b7">pwm_sample_repeat_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><em><a class="anchor" id="gga0fa976f45603849cad601ab4db4d15b7a602b673889a9b270cec181f67df0b693"></a>kPWM_EachSampleOnce</em>&nbsp;</td><td class="fielddoc">
<p>Use each sample once. </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="gga0fa976f45603849cad601ab4db4d15b7aa76ac77e7df80d685a539609a2f3989d"></a>kPWM_EachSampletwice</em>&nbsp;</td><td class="fielddoc">
<p>Use each sample twice. </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="gga0fa976f45603849cad601ab4db4d15b7abe0215aa24b7e1b37dadbb36ec82d38b"></a>kPWM_EachSampleFourTimes</em>&nbsp;</td><td class="fielddoc">
<p>Use each sample four times. </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="gga0fa976f45603849cad601ab4db4d15b7a0aaa4ddab42036d9bc77aaacf16717e5"></a>kPWM_EachSampleEightTimes</em>&nbsp;</td><td class="fielddoc">
<p>Use each sample eight times. </p>
</td></tr>
</table>

</div>
</div>
<a class="anchor" id="ga4f56d1f07b6947af55eccc5375ed520d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__pwm__driver.html#ga4f56d1f07b6947af55eccc5375ed520d">pwm_interrupt_enable_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><em><a class="anchor" id="gga4f56d1f07b6947af55eccc5375ed520da4525b66559dac8d57abfad2c4bbbea40"></a>kPWM_FIFOEmptyInterruptEnable</em>&nbsp;</td><td class="fielddoc">
<p>This bit controls the generation of the FIFO Empty interrupt. </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="gga4f56d1f07b6947af55eccc5375ed520daaf5fdeddfe16aa2c1208c2e4d91996f7"></a>kPWM_RolloverInterruptEnable</em>&nbsp;</td><td class="fielddoc">
<p>This bit controls the generation of the Rollover interrupt. </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="gga4f56d1f07b6947af55eccc5375ed520daa9b58c2bf5145b5ef4b981b5f5d50fea"></a>kPWM_CompareInterruptEnable</em>&nbsp;</td><td class="fielddoc">
<p>This bit controls the generation of the Compare interrupt. </p>
</td></tr>
</table>

</div>
</div>
<a class="anchor" id="gabc3ee1e46578039b2dbe795d60a69b2f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__pwm__driver.html#gabc3ee1e46578039b2dbe795d60a69b2f">pwm_status_flags_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><em><a class="anchor" id="ggabc3ee1e46578039b2dbe795d60a69b2faa760e2de69f86bf50b160fa613f3ed0f"></a>kPWM_FIFOEmptyFlag</em>&nbsp;</td><td class="fielddoc">
<p>This bit indicates the FIFO data level in comparison to the water level set by FWM field in the control register. </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="ggabc3ee1e46578039b2dbe795d60a69b2fa6935f1892585a8ee4236792eb8b71e9d"></a>kPWM_RolloverFlag</em>&nbsp;</td><td class="fielddoc">
<p>This bit shows that a roll-over event has occurred. </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="ggabc3ee1e46578039b2dbe795d60a69b2fa5c09799112bef469896b400acfa81c47"></a>kPWM_CompareFlag</em>&nbsp;</td><td class="fielddoc">
<p>This bit shows that a compare event has occurred. </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="ggabc3ee1e46578039b2dbe795d60a69b2faea97a51c1742c4b203c9d43efabf773e"></a>kPWM_FIFOWriteErrorFlag</em>&nbsp;</td><td class="fielddoc">
<p>This bit shows that an attempt has been made to write FIFO when it is full. </p>
</td></tr>
</table>

</div>
</div>
<a class="anchor" id="ga44d23f62b51e6ff9cfb59c0de70854e0"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__pwm__driver.html#ga44d23f62b51e6ff9cfb59c0de70854e0">pwm_fifo_available_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><em><a class="anchor" id="gga44d23f62b51e6ff9cfb59c0de70854e0abc972d0365de9da7939b7b2303843ae7"></a>kPWM_NoDataInFIFOFlag</em>&nbsp;</td><td class="fielddoc">
<p>No data available. </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="gga44d23f62b51e6ff9cfb59c0de70854e0a7ad9f69d768a8db9d06451bd10570f45"></a>kPWM_OneWordInFIFOFlag</em>&nbsp;</td><td class="fielddoc">
<p>1 word of data in FIFO </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="gga44d23f62b51e6ff9cfb59c0de70854e0a9f29c4ee5edf483e38b8cfd8ae17d5fe"></a>kPWM_TwoWordsInFIFOFlag</em>&nbsp;</td><td class="fielddoc">
<p>2 word of data in FIFO </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="gga44d23f62b51e6ff9cfb59c0de70854e0a562337a037bdefed6658dbc098d28ba8"></a>kPWM_ThreeWordsInFIFOFlag</em>&nbsp;</td><td class="fielddoc">
<p>3 word of data in FIFO </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="gga44d23f62b51e6ff9cfb59c0de70854e0a8c49eedceff1f99bd9908fcaf652278d"></a>kPWM_FourWordsInFIFOFlag</em>&nbsp;</td><td class="fielddoc">
<p>4 word of data in FIFO </p>
</td></tr>
</table>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="ga6359b8a4cd00c794549ed9441e50ba3c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">status_t PWM_Init </td>
          <td>(</td>
          <td class="paramtype">PWM_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const pwm_config_t *&#160;</td>
          <td class="paramname"><em>config</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section note"><dt>Note</dt><dd>This API should be called at the beginning of the application using the PWM driver.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>PWM peripheral base address </td></tr>
    <tr><td class="paramname">config</td><td>Pointer to user's PWM config structure.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>kStatus_Success means success; else failed. </dd></dl>

</div>
</div>
<a class="anchor" id="gaf93b767ea243d633bb00e3c7b4a217c6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void PWM_Deinit </td>
          <td>(</td>
          <td class="paramtype">PWM_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>PWM peripheral base address </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gaead09677ab28bfd57dce26c6c161b18d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void PWM_GetDefaultConfig </td>
          <td>(</td>
          <td class="paramtype">pwm_config_t *&#160;</td>
          <td class="paramname"><em>config</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>The default values are: </p>
<div class="fragment"><div class="line">*   config-&gt;enableStopMode = <span class="keyword">false</span>;</div>
<div class="line">*   config-&gt;enableDozeMode = <span class="keyword">false</span>;</div>
<div class="line">*   config-&gt;enableWaitMode = <span class="keyword">false</span>;</div>
<div class="line">*   config-&gt;enableDozeMode = <span class="keyword">false</span>;</div>
<div class="line">*   config-&gt;clockSource = <a class="code" href="group__pwm__driver.html#gga54dcbb5e3e5c8ceebef5f46a9ec73a2faba2ffadbe1b173e93305c188117a76c2">kPWM_LowFrequencyClock</a>;</div>
<div class="line">*   config-&gt;prescale = 0U;</div>
<div class="line">*   config-&gt;outputConfig = <a class="code" href="group__pwm__driver.html#gga0adacb1aa800a63efc5284aad1c99e94ae7aa751cf0d4e6cc037bcb759a2da38a">kPWM_SetAtRolloverAndClearAtcomparison</a>;</div>
<div class="line">*   config-&gt;fifoWater = <a class="code" href="group__pwm__driver.html#gga6e28d42a5d0c43c2afd4a360868b67c1aa33f62954c9e10d85e4a13412090913f">kPWM_FIFOWaterMark_2</a>;</div>
<div class="line">*   config-&gt;sampleRepeat = <a class="code" href="group__pwm__driver.html#gga0fa976f45603849cad601ab4db4d15b7a602b673889a9b270cec181f67df0b693">kPWM_EachSampleOnce</a>;</div>
<div class="line">*   config-&gt;byteSwap = <a class="code" href="group__pwm__driver.html#ggacc83f5df6efd279b96ec7736d4259134ae3fa9d0120efe5505d2af8e97930289d">kPWM_ByteNoSwap</a>;</div>
<div class="line">*   config-&gt;halfWordSwap = <a class="code" href="group__pwm__driver.html#gga9717526c69f90be4577677b784a95c99a7fa6ec0c14835ef884bf21948ab9bcf1">kPWM_HalfWordNoSwap</a>;</div>
<div class="line">* </div>
</div><!-- fragment --> <dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">config</td><td>Pointer to user's PWM config structure. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga6d94af58afb186f19c075cf0cc8a4670"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void PWM_StartTimer </td>
          <td>(</td>
          <td class="paramtype">PWM_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>When the PWM is enabled, it begins a new period, the output pin is set to start a new period while the prescaler and counter are released and counting begins.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>PWM peripheral base address </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga863fd4143eab8fba91be2a80c300ee5f"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void PWM_StopTimer </td>
          <td>(</td>
          <td class="paramtype">PWM_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>PWM peripheral base address </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga46cd9b9c3c3409649667d816b37dfe93"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void PWM_SoftwareReset </td>
          <td>(</td>
          <td class="paramtype">PWM_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>PWM is reset when this bit is set to 1. It is a self clearing bit. Setting this bit resets all the registers to their reset values except for the STOPEN, DOZEN, WAITEN, and DBGEN bits in this control register.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>PWM peripheral base address </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gaa8ddb3dddd8f5a9451cf286da691572e"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void PWM_EnableInterrupts </td>
          <td>(</td>
          <td class="paramtype">PWM_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>mask</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>PWM peripheral base address </td></tr>
    <tr><td class="paramname">mask</td><td>The interrupts to enable. This is a logical OR of members of the enumeration <a class="el" href="group__pwm__driver.html#ga4f56d1f07b6947af55eccc5375ed520d" title="List of PWM interrupt options. ">pwm_interrupt_enable_t</a> </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gaf8ef908a32a5b7c11890119680533efb"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void PWM_DisableInterrupts </td>
          <td>(</td>
          <td class="paramtype">PWM_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>mask</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>PWM peripheral base address </td></tr>
    <tr><td class="paramname">mask</td><td>The interrupts to disable. This is a logical OR of members of the enumeration <a class="el" href="group__pwm__driver.html#ga4f56d1f07b6947af55eccc5375ed520d" title="List of PWM interrupt options. ">pwm_interrupt_enable_t</a> </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gaf5aeac9d17361d41ebd4fd35cf8c844b"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static uint32_t PWM_GetEnabledInterrupts </td>
          <td>(</td>
          <td class="paramtype">PWM_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>PWM peripheral base address</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The enabled interrupts. This is the logical OR of members of the enumeration <a class="el" href="group__pwm__driver.html#ga4f56d1f07b6947af55eccc5375ed520d" title="List of PWM interrupt options. ">pwm_interrupt_enable_t</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ga1e16638fb84c7881722c7d370824bb34"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static uint32_t PWM_GetStatusFlags </td>
          <td>(</td>
          <td class="paramtype">PWM_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>PWM peripheral base address</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The status flags. This is the logical OR of members of the enumeration <a class="el" href="group__pwm__driver.html#gabc3ee1e46578039b2dbe795d60a69b2f" title="List of PWM status flags. ">pwm_status_flags_t</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ga5554b41a1262201466f831085fa0a0e3"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void PWM_clearStatusFlags </td>
          <td>(</td>
          <td class="paramtype">PWM_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>mask</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>PWM peripheral base address </td></tr>
    <tr><td class="paramname">mask</td><td>The status flags to clear. This is a logical OR of members of the enumeration <a class="el" href="group__pwm__driver.html#gabc3ee1e46578039b2dbe795d60a69b2f" title="List of PWM status flags. ">pwm_status_flags_t</a> </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga68f31c637445e375d6429db0f265a0ff"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static uint32_t PWM_GetFIFOAvailable </td>
          <td>(</td>
          <td class="paramtype">PWM_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>PWM peripheral base address</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The status flags. This is the logical OR of members of the enumeration <a class="el" href="group__pwm__driver.html#ga44d23f62b51e6ff9cfb59c0de70854e0" title="List of PWM FIFO available. ">pwm_fifo_available_t</a> </dd></dl>

</div>
</div>
<a class="anchor" id="gaf30e59afefa5214fdb951a41508c39d2"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void PWM_SetSampleValue </td>
          <td>(</td>
          <td class="paramtype">PWM_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>value</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>PWM peripheral base address </td></tr>
    <tr><td class="paramname">mask</td><td>The sample value. This is the input to the 4x16 FIFO. The value in this register denotes the value of the sample being currently used. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga6e3329e7f50fc923b26003a988366860"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static uint32_t PWM_GetSampleValue </td>
          <td>(</td>
          <td class="paramtype">PWM_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>PWM peripheral base address</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The sample value. It can be read only when the PWM is enable. </dd></dl>

</div>
</div>
<a class="anchor" id="gaeca8cd9af1aacdca96c91f60482a54d4"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void PWM_SetPeriodValue </td>
          <td>(</td>
          <td class="paramtype">PWM_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>value</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>PWM peripheral base address </td></tr>
    <tr><td class="paramname">mask</td><td>The period value. The PWM period register (PWM_PWMPR) determines the period of the PWM output signal. Writing 0xFFFF to this register will achieve the same result as writing 0xFFFE. PWMO (Hz) = PCLK(Hz) / (period +2) </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga67304227c86e6a15ec78f339f9fe00e3"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static uint32_t PWM_GetPeriodValue </td>
          <td>(</td>
          <td class="paramtype">PWM_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>PWM peripheral base address</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The period value. The PWM period register (PWM_PWMPR) determines the period of the PWM output signal. </dd></dl>

</div>
</div>
<a class="anchor" id="gac77ad7b4cbb1658df73b8d50f10978b5"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static uint32_t PWM_GetCounterValue </td>
          <td>(</td>
          <td class="paramtype">PWM_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>PWM peripheral base address</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The counter value. The current count value. </dd></dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.8.5-->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul class="foot">
    <li class="footer">&copy; 2016 NXP Semiconductors. All rights reserved.
    </li>
  </ul>
</div>
</body>
</html>
